<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>print test</title>
<script type="text/javascript" src="/iccard-admin/common/js/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="/iccard-admin/common/js/LodopFuncs.js"></script>
<script type="text/javascript" src="/iccard-admin/common/js/jquery.printArea.js"></script>
<script language="javascript">
	var LODOP;

	function printit() {
		if (confirm('确定打印吗？')) {
			//WebBrowser.ExecWb(6, 6)
			//$('#printArea').printArea();
		}
	}
	
	function prn1_print() {		
		CreateOneFormPage();
		LODOP.PRINT();	
	};
	
	function prn1_preview() {	
		CreateOneFormPage();	
		LODOP.PREVIEW();	
	};
	
	function CreateOneFormPage(){
		LODOP=getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM'));  
		LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_表单一");
		LODOP.SET_PRINT_STYLE("FontSize",18);
		LODOP.SET_PRINT_STYLE("Bold",1);
		LODOP.ADD_PRINT_TEXT(50,231,260,39,"打印页面部分内容");
		LODOP.ADD_PRINT_HTM(88,200,350,600,$('#printArea').html());
	};
</script>

</head>
<body>
	<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0" height="0">  
		<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed> 
	</object>
	<input type="button" value="lodop预览" onclick="prn1_preview();">
	<input type="button" value="lodop打印" onclick="prn1_print();">
	<input type="button" value="jatool打印" onclick="doPrint();">
	<div style="padding: 5px;" id="page1">
		<img src="tab.png" /> 
	</div>
	
	
	<OBJECT  ID="jatoolsPrinter" CLASSID="CLSID:B43D3361-D075-4BE2-87FE-057188254255"
                  codebase="../common/jatoolsPrinter.cab#version=5,7,0,0"></OBJECT>
    <script type="text/javascript">
  //jatool
	function doPrint() {
        myDoc = {
            documents: document,
            copyrights: '杰创软件拥有版权  www.jatools.com' // 版权声明,必须   
        };
        document.getElementById('jatoolsPrinter').print(myDoc, false); // 直接打印，不弹出打印机设置对话框 
    }
    </script>
</body>
</html>